home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / GXLayout.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  8.8 KB  |  108 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXLayout.p
  3.  
  4.      Contains:    QuickDraw GX layout routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT GXLayout;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __GXLAYOUT__}
  27. {$SETC __GXLAYOUT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC GXLayoutIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __CONDITIONALMACROS__}
  34. {$I ConditionalMacros.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __GXTYPES__}
  37. {$I GXTypes.p}
  38. {$ENDC}
  39.  
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45. FUNCTION GXNewLayout(textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint): gxShape; C;
  46. FUNCTION GXGetLayout(layout: gxShape; text: UNIV Ptr; VAR styleRunCount: LONGINT; VAR styleRunLengths: INTEGER; VAR styles: gxStyle; VAR levelRunCount: LONGINT; VAR levelRunLengths: INTEGER; VAR levels: INTEGER; VAR layoutOptions: gxLayoutOptions; VAR position: gxPoint): LONGINT; C;
  47. PROCEDURE GXSetLayout(layout: gxShape; textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint); C;
  48. PROCEDURE GXDrawLayout(textRunCount: LONGINT; {CONST}VAR textRunLengths: INTEGER; {CONST}VAR text: UNIV Ptr; styleRunCount: LONGINT; {CONST}VAR styleRunLengths: INTEGER; {CONST}VAR styles: gxStyle; levelRunCount: LONGINT; {CONST}VAR levelRunLengths: INTEGER; {CONST}VAR levels: INTEGER; {CONST}VAR layoutOptions: gxLayoutOptions; {CONST}VAR position: gxPoint); C;
  49. PROCEDURE GXSetLayoutParts(layout: gxShape; oldStartOffset: gxByteOffset; oldEndOffset: gxByteOffset; newTextRunCount: LONGINT; {CONST}VAR newTextRunLengths: INTEGER; {CONST}VAR newText: UNIV Ptr; newStyleRunCount: LONGINT; {CONST}VAR newStyleRunLengths: INTEGER; {CONST}VAR newStyles: gxStyle; newLevelRunCount: LONGINT; {CONST}VAR newLevelRunLengths: INTEGER; {CONST}VAR newLevels: INTEGER); C;
  50. PROCEDURE GXSetLayoutShapeParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; insert: gxShape); C;
  51. FUNCTION GXGetLayoutParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; text: UNIV Ptr; VAR styleRunCount: LONGINT; VAR styleRunLengths: INTEGER; VAR styles: gxStyle; VAR levelRunCount: LONGINT; VAR levelRunLengths: INTEGER; VAR levels: INTEGER): LONGINT; C;
  52. FUNCTION GXGetLayoutShapeParts(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; dest: gxShape): gxShape; C;
  53. FUNCTION GXGetLayoutGlyphs(layout: gxShape; VAR glyphs: gxGlyphcode; VAR positions: gxPoint; VAR advance: LONGINT; VAR tangents: gxPoint; VAR runCount: LONGINT; VAR styleRuns: INTEGER; VAR glyphStyles: gxStyle): LONGINT; C;
  54. FUNCTION GXHitTestLayout(layout: gxShape; {CONST}VAR hitDown: gxPoint; highlightType: gxHighlightType; VAR hitInfo: gxLayoutHitInfo; hitTrackingArea: gxShape): gxByteOffset; C;
  55. FUNCTION GXGetLayoutHighlight(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; highlightType: gxHighlightType; highlight: gxShape): gxShape; C;
  56. FUNCTION GXGetLayoutVisualHighlight(layout: gxShape; startOffset: gxByteOffset; startLeadingEdge: LONGINT; endOffset: gxByteOffset; endLeadingEdge: LONGINT; highlightType: gxHighlightType; highlight: gxShape): gxShape; C;
  57. FUNCTION GXGetLayoutCaret(layout: gxShape; offset: gxByteOffset; highlightType: gxHighlightType; caretType: gxCaretType; caret: gxShape): gxShape; C;
  58. FUNCTION GXGetLayoutBreakOffset(layout: gxShape; startOffset: gxByteOffset; lineWidth: Fixed; hyphenationCount: LONGINT; {CONST}VAR hyphenationPoints: gxByteOffset; VAR startIsStaked: BOOLEAN; VAR priorStake: gxByteOffset; VAR nextStake: gxByteOffset): gxByteOffset; C;
  59. FUNCTION GXGetLayoutRangeWidth(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; supplementaryText: gxShape): Fixed; C;
  60. FUNCTION GXNewLayoutFromRange(layout: gxShape; startOffset: gxByteOffset; endOffset: gxByteOffset; {CONST}VAR layoutOptions: gxLayoutOptions; supplementaryText: gxShape): gxShape; C;
  61. FUNCTION GXGetCaretAngleArea(layout: gxShape; {CONST}VAR hitPoint: gxPoint; highlightType: gxHighlightType; caretArea: gxShape; VAR returnedRise: INTEGER; VAR returnedRun: INTEGER): gxShape; C;
  62. PROCEDURE GXGetStyleBaselineDeltas(baseStyle: gxStyle; baseType: gxBaselineType; VAR returnedDeltas: gxBaselineDeltas); C;
  63. FUNCTION GXGetRightVisualOffset(layout: gxShape; currentOffset: gxByteOffset): gxByteOffset; C;
  64. FUNCTION GXGetLeftVisualOffset(layout: gxShape; currentOffset: gxByteOffset): gxByteOffset; C;
  65. PROCEDURE GXGetCompoundCharacterLimits(layout: gxShape; trial: gxByteOffset; VAR minOffset: gxByteOffset; VAR maxOffset: gxByteOffset; VAR onBoundary: BOOLEAN); C;
  66. PROCEDURE GXGetOffsetGlyphs(layout: gxShape; trial: gxByteOffset; leadingEdge: LONGINT; VAR offsetState: gxLayoutOffsetState; VAR firstGlyph: UInt16; VAR secondGlyph: UInt16); C;
  67. PROCEDURE GXGetGlyphOffset(layout: gxShape; trial: LONGINT; onLeftTop: LONGINT; VAR offset: gxByteOffset; VAR leadingEdge: BOOLEAN; VAR wasRealCharacter: BOOLEAN); C;
  68. PROCEDURE GXGetLayoutSpan(layout: gxShape; VAR lineAscent: Fixed; VAR lineDescent: Fixed); C;
  69. PROCEDURE GXSetLayoutSpan(layout: gxShape; lineAscent: Fixed; lineDescent: Fixed); C;
  70. FUNCTION GXGetLayoutJustificationGap(layout: gxShape): Fixed; C;
  71. PROCEDURE GXGetLayoutJustificationFactors(layout: gxShape; VAR constrainedFactors: Fixed; VAR unconstrainedFactors: Fixed); C;
  72. PROCEDURE GXSetStyleRunControls(target: gxStyle; {CONST}VAR runControls: gxRunControls); C;
  73. PROCEDURE GXSetStyleRunPriorityJustOverride(target: gxStyle; {CONST}VAR priorityJustificationOverride: gxPriorityJustificationOverride); C;
  74. PROCEDURE GXSetStyleRunGlyphJustOverrides(target: gxStyle; count: LONGINT; {CONST}VAR glyphJustificationOverrides: gxGlyphJustificationOverride); C;
  75. PROCEDURE GXSetStyleRunGlyphSubstitutions(target: gxStyle; count: LONGINT; {CONST}VAR glyphSubstitutions: gxGlyphSubstitution); C;
  76. PROCEDURE GXSetStyleRunFeatures(target: gxStyle; count: LONGINT; {CONST}VAR runFeatures: gxRunFeature); C;
  77. PROCEDURE GXSetStyleRunKerningAdjustments(target: gxStyle; count: LONGINT; {CONST}VAR kerningAdjustments: gxKerningAdjustment); C;
  78. PROCEDURE GXSetShapeRunControls(target: gxShape; {CONST}VAR runControls: gxRunControls); C;
  79. PROCEDURE GXSetShapeRunPriorityJustOverride(target: gxShape; {CONST}VAR priorityJustificationOverride: gxPriorityJustificationOverride); C;
  80. PROCEDURE GXSetShapeRunGlyphJustOverrides(target: gxShape; count: LONGINT; {CONST}VAR glyphJustificationOverrides: gxGlyphJustificationOverride); C;
  81. PROCEDURE GXSetShapeRunGlyphSubstitutions(target: gxShape; count: LONGINT; {CONST}VAR glyphSubstitutions: gxGlyphSubstitution); C;
  82. PROCEDURE GXSetShapeRunFeatures(target: gxShape; count: LONGINT; {CONST}VAR runFeatures: gxRunFeature); C;
  83. PROCEDURE GXSetShapeRunKerningAdjustments(target: gxShape; count: LONGINT; {CONST}VAR kerningAdjustments: gxKerningAdjustment); C;
  84. FUNCTION GXGetStyleRunControls(source: gxStyle; VAR runControls: gxRunControls): LONGINT; C;
  85. FUNCTION GXGetStyleRunPriorityJustOverride(source: gxStyle; VAR priorityJustificationOverride: gxPriorityJustificationOverride): LONGINT; C;
  86. FUNCTION GXGetStyleRunGlyphJustOverrides(source: gxStyle; VAR glyphJustificationOverrides: gxGlyphJustificationOverride): LONGINT; C;
  87. FUNCTION GXGetStyleRunGlyphSubstitutions(source: gxStyle; VAR glyphSubstitutions: gxGlyphSubstitution): LONGINT; C;
  88. FUNCTION GXGetStyleRunFeatures(source: gxStyle; VAR runFeatures: gxRunFeature): LONGINT; C;
  89. FUNCTION GXGetStyleRunKerningAdjustments(source: gxStyle; VAR kerningAdjustments: gxKerningAdjustment): LONGINT; C;
  90. FUNCTION GXGetShapeRunControls(source: gxShape; VAR runControls: gxRunControls): LONGINT; C;
  91. FUNCTION GXGetShapeRunPriorityJustOverride(source: gxShape; VAR priorityJustificationOverride: gxPriorityJustificationOverride): LONGINT; C;
  92. FUNCTION GXGetShapeRunGlyphJustOverrides(source: gxShape; VAR glyphJustificationOverrides: gxGlyphJustificationOverride): LONGINT; C;
  93. FUNCTION GXGetShapeRunGlyphSubstitutions(source: gxShape; VAR glyphSubstitutions: gxGlyphSubstitution): LONGINT; C;
  94. FUNCTION GXGetShapeRunFeatures(source: gxShape; VAR runFeatures: gxRunFeature): LONGINT; C;
  95. FUNCTION GXGetShapeRunKerningAdjustments(source: gxShape; VAR kerningAdjustments: gxKerningAdjustment): LONGINT; C;
  96.  
  97.  
  98. {$ALIGN RESET}
  99. {$POP}
  100.  
  101. {$SETC UsingIncludes := GXLayoutIncludes}
  102.  
  103. {$ENDC} {__GXLAYOUT__}
  104.  
  105. {$IFC NOT UsingIncludes}
  106.  END.
  107. {$ENDC}
  108.